home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1994 April / Inside Multimedia CD-ROM (April 1994).iso / prg / gs / gssource.exe / UNIX-CC.MAK < prev    next >
Encoding:
Makefile  |  1992-08-24  |  53.9 KB  |  1,570 lines

  1. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/cc/X11 configuration.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the installation commands and target directories for
  29. # executables and files.  Only relevant to `make install'.
  30.  
  31. INSTALL = install -c
  32. INSTALL_PROGRAM = $(INSTALL) -m 775
  33. INSTALL_DATA = $(INSTALL) -m 664
  34.  
  35. prefix = /usr/local
  36. exec_prefix = $(prefix)
  37. bindir = $(exec_prefix)/bin
  38. datadir = $(prefix)/lib
  39. gsdatadir = $(datadir)/ghostscript
  40.  
  41. # Define the default directory/ies for the runtime
  42. # initialization and font files.  Separate multiple directories with a :.
  43.  
  44. GS_LIB_DEFAULT=$(gsdatadir):$(gsdatadir)/fonts
  45.  
  46. # Define the name of the Ghostscript initialization file.
  47. # (There is no reason to change this.)
  48.  
  49. GS_INIT=gs_init.ps
  50.  
  51. # Choose generic configuration options.
  52.  
  53. # -DDEBUG
  54. #    includes debugging features (-Z switch) in the code.
  55. #      Code runs substantially slower even if no debugging switches
  56. #      are set.
  57. # -DNOPRIVATE
  58. #    makes private (static) procedures and variables public,
  59. #      so they are visible to the debugger and profiler.
  60. #      No execution time or space penalty.
  61.  
  62. GENOPT=
  63.  
  64. # ------ Platform-specific options ------ #
  65.  
  66. # Define the other compilation flags.
  67. # Add -DBSD4_2 for 4.2bsd systems.
  68. # Add -DSYSV for System V.
  69. # Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  70. #   or any System III Unix, or System V release 3-or-older Unix.
  71. # Add -DSVR4 (not -DSYSV) for System V release 4.
  72. # XCFLAGS can be set from the command line.
  73.  
  74. CFLAGS=-O $(XCFLAGS)
  75.  
  76. # Define platform flags for ld.
  77. # SunOS and some others want -X; Ultrix wants -x.
  78. # SunOS 4.n may need -Bstatic.
  79. # XLDFLAGS can be set from the command line.
  80.  
  81. LDFLAGS=$(XLDFLAGS)
  82.  
  83. # Define any extra libraries to link into the executable.
  84. # ISC Unix 2.2 wants -linet.
  85. # (Libraries required by individual drivers are handled automatically.)
  86.  
  87. EXTRALIBS=
  88.  
  89. # Define the include switch(es) for the X11 header files.
  90. # This can be null if handled in some other way (e.g., the files are
  91. # in /usr/include, or the directory is supplied by an environment variable).
  92. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  93. # not in $(XINCLUDE).
  94.  
  95. XINCLUDE=-I/usr/local/X/include
  96.  
  97. # Define the directory/ies for the X11 library files.
  98. # This can be null if these files are in the default linker search path.
  99.  
  100. XLIBDIRS=-L/usr/local/X/lib
  101.  
  102. # ------ Devices and features ------ #
  103.  
  104. # Choose the language feature(s) to include.  See gs.mak for details.
  105.  
  106. FEATURE_DEVS=filter.dev dps.dev level2.dev
  107.  
  108. # Choose the device(s) to include.  See devs.mak for details.
  109.  
  110. DEVICE_DEVS=x11.dev
  111.  
  112. # ---------------------------- End of options --------------------------- #
  113.  
  114. # Define the name of the makefile -- used in dependencies.
  115.  
  116. MAKEFILE=unix-cc.mak
  117.  
  118. # Define the ANSI-to-K&R dependency.
  119.  
  120. AK=ansi2knr$(XE)
  121.  
  122. # Define the compilation rules and flags.
  123.  
  124. CCC=./ccgs "$(CC) $(CCFLAGS)"
  125.  
  126. # --------------------------- Generic makefile ---------------------------- #
  127.  
  128. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  129. # is generic.  tar_cat concatenates all these together.
  130. #    Copyright (C) 1990, 1991 Aladdin Enterprises.  All rights reserved.
  131. #    Distributed by Free Software Foundation, Inc.
  132. #
  133. # This file is part of Ghostscript.
  134. #
  135. # Ghostscript is distributed in the hope that it will be useful, but
  136. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  137. # to anyone for the consequences of using it or for whether it serves any
  138. # particular purpose or works at all, unless he says so in writing.  Refer
  139. # to the Ghostscript General Public License for full details.
  140. #
  141. # Everyone is granted permission to copy, modify and redistribute
  142. # Ghostscript, but only under the conditions described in the Ghostscript
  143. # General Public License.  A copy of this license is supposed to have been
  144. # given to you along with Ghostscript so you can know your rights and
  145. # responsibilities.  It should be in a file named COPYING.  Among other
  146. # things, the copyright notice and this notice must be preserved on all
  147. # copies.
  148.  
  149. # Partial makefile for Ghostscript, common to all Unix configurations.
  150.  
  151. # This part of the makefile gets inserted after the compiler-specific part
  152. # (xxx-head.mak) and before gs.mak and devs.mak.
  153.  
  154. # ----------------------------- Generic stuff ----------------------------- #
  155.  
  156. # Define the platform name.  For a "stock" System V platform,
  157. # use sysv_ instead of unix_.
  158.  
  159. PLATFORM=unix_
  160.  
  161. # Define the extensions for the object and executable files.
  162.  
  163. OBJ=o
  164. XE=
  165.  
  166. # Define the need for uniq.
  167.  
  168. UNIQ=
  169.  
  170. # Define the current directory prefix, shell quote string, and shell names.
  171.  
  172. EXP=./
  173. QQ=\"
  174. SHELL=/bin/sh
  175. SH=$(SHELL)
  176. SHP=$(SH) $(EXP)
  177.  
  178. # Define the compilation rules and flags.
  179.  
  180. CCFLAGS=$(GENOPT) $(CFLAGS)
  181.  
  182. .c.o: $(AK)
  183.     $(CCC) $*.c
  184.  
  185. CC0=$(CCC)
  186. CCD=$(CCC)
  187. CCINT=$(CCC)
  188. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  189. #    Distributed by Free Software Foundation, Inc.
  190. #
  191. # This file is part of Ghostscript.
  192. #
  193. # Ghostscript is distributed in the hope that it will be useful, but
  194. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  195. # to anyone for the consequences of using it or for whether it serves any
  196. # particular purpose or works at all, unless he says so in writing.  Refer
  197. # to the Ghostscript General Public License for full details.
  198. #
  199. # Everyone is granted permission to copy, modify and redistribute
  200. # Ghostscript, but only under the conditions described in the Ghostscript
  201. # General Public License.  A copy of this license is supposed to have been
  202. # given to you along with Ghostscript so you can know your rights and
  203. # responsibilities.  It should be in a file named COPYING.  Among other
  204. # things, the copyright notice and this notice must be preserved on all
  205. # copies.
  206.  
  207. # Generic makefile for Ghostscript.
  208. # The platform-specific makefiles `include' this file.
  209. # They define the following symbols:
  210. #    GS_INIT - the name of the initialization file for Ghostscript,
  211. #        normally gs_init.ps.
  212. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  213. #        initialization and font files at run time.
  214. #    DEVICE_DEVS - the devices to include in the executable.
  215. #        See devs.mak for details.
  216. #    DEVICE_DEVS2...DEVICE_DEVS5 - additional devices, if the definition of
  217. #        DEVICE_DEVS doesn't fit on one line.
  218. #        See devs.mak for details.
  219. #    FEATURE_DEVS - the optional features to include in the
  220. #        executable.  Current features are:
  221. #            dps - support for Display PostScript extensions.
  222. #            *** PARTIALLY IMPLEMENTED, SEE language.doc. ***
  223. #            level2 - support for PostScript Level 2 extensions.
  224. #            *** PARTIALLY IMPLEMENTED, SEE language.doc. ***
  225. #            compfont - support for composite (type 0) fonts.
  226. #            *** NOT IMPLEMENTED YET. ***
  227. #            filter - support for Level 2 filters (other than eexec,
  228. #            ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  229. #            and SubFileDecode, which are always included).
  230. #            ccfonts - precompile fonts into C, and link them
  231. #            with the executable.  In the standard makefiles,
  232. #            this is only implemented for a very few fonts:
  233. #            see fonts.doc for details.
  234. # It is very unlikely that anyone would want to edit the remaining
  235. #   symbols, but we describe them here for completeness:
  236. #    PLATFORM - a "device" name for the platform, so that platforms can
  237. #        add various kinds of resources like devices and features.
  238. #    QQ - a " preceded by whatever escape characters are needed to
  239. #        persuade the shell to pass a " to a program (" on MS-DOS,
  240. #        \" on Unix).
  241. #    XE - the extension for executable files (e.g., null or .exe).
  242. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  243. #    CCC - the C invocation for normal compilation.
  244. #    CCD - the C invocation for files that store into frame buffers or
  245. #        device registers.  Needed because some optimizing compilers
  246. #        will eliminate necessary stores.
  247. #    CC0 - a C invocation with the fewest possible flags.  Needed because
  248. #        MS-DOS limits the length of command lines to 128 characters.
  249. #    CCINT - the C invocation for compiling the main interpreter module,
  250. #        normally the same as CCC: this is needed because the
  251. #        Borland compiler generates *worse* code for this module
  252. #        (but only this module) when optimization (-O) is turned on.
  253. #    AK - if source files must be converted from ANSI to K&R syntax,
  254. #        this is ansi2knr$(XE); if not, it is null.
  255. #        If a particular platform requires other utility programs
  256. #        to be built, AK must include them too.
  257. #    UNIQ - null on systems that provide the uniq utility,
  258. #        uniq$(XE) on systems where we have to provide our own.
  259. #    SHP - the prefix for invoking a shell script in the current directory
  260. #        (null for MS-DOS, $(SH) ./ for Unix).
  261. #    EXPP, EXP - the prefix for invoking an executable program in the
  262. #        current directory (null for MS-DOS, ./ for Unix).
  263. #    SH - the shell for scripts (null on MS-DOS, sh on Unix).
  264. # The platform-specific makefiles must also include rules for creating
  265. #   ansi2knr$(XE) and genarch$(XE) from the corresponding .c files,
  266. #   and for making arch.h by executing genarch$(XE).  (This
  267. #   shouldn't really be necessary, but Turbo C and Unix C treat the -o
  268. #   switch slightly differently (Turbo C requires no following space,
  269. #   Unix C requires a following space), and I haven't found a way to capture
  270. #   the difference in a macro; also, Unix requires ./ because . may not be
  271. #   in the search path, whereas MS-DOS always looks in the current
  272. #   directory first.)
  273.  
  274. all default: gs$(XE)
  275.  
  276. mostlyclean realclean distclean clean:
  277.     rm -f *.$(OBJ) *.a core gmon.out
  278.     rm -f *.dev *.d_* arch.h gconfig.h obj*.tr lib*.tr
  279.     rm -f t _temp_* _temp_*.* *.map *.sym
  280.     rm -f ansi2knr$(XE) echogs$(XE) genarch$(XE) uniq$(XE)
  281.     rm -f gs$(XE) $(BEGINFILES)
  282.  
  283. # A rule to do a quick and dirty compilation attempt when first installing
  284. # Ghostscript.  Many of the compilations will fail: follow this with 'make'.
  285.  
  286. begin:
  287.     rm -f arch.h genarch$(XE) $(BEGINFILES)
  288.     make arch.h
  289.     - $(CCC) *.c
  290.     rm -f gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gsmisc.$(OBJ)
  291.     rm -f iccfont.$(OBJ) iinit.$(OBJ) interp.$(OBJ)
  292.  
  293. # Auxiliary programs
  294.  
  295. arch.h: genarch$(XE)
  296.     $(EXPP) $(EXP)genarch arch.h
  297.  
  298. # -------------------------------- Library -------------------------------- #
  299.  
  300. # Define the inter-dependencies of the .h files.
  301. # Since not all versions of `make' defer expansion of macros,
  302. # we must list these in bottom-to-top order.
  303.  
  304. # Generic files
  305.  
  306. arch_h=arch.h
  307. std_h=std.h $(arch_h)
  308. gdebug_h=gdebug.h
  309. gs_h=gs.h $(std_h)
  310. gx_h=gx.h $(gs_h) $(gdebug_h)
  311.  
  312. # Platform interfaces
  313.  
  314. gp_h=gp.h
  315. gpcheck_h=gpcheck.h
  316.  
  317. # C library interfaces
  318.  
  319. # Because of variations in the "standard" header files between systems,
  320. # we define local include files named *_.h to substitute for <*.h>.
  321.  
  322. vmsmath_h=vmsmath.h
  323.  
  324. dos__h=dos_.h
  325. malloc__h=malloc_.h
  326. math__h=math_.h $(vmsmath_h)
  327. memory__h=memory_.h
  328. stat__h=stat_.h
  329. string__h=string_.h
  330. time__h=time_.h
  331.  
  332. # Miscellaneous
  333.  
  334. gserrors_h=gserrors.h
  335.  
  336. GX=$(AK) $(gx_h)
  337. GXERR=$(GX) $(gserrors_h)
  338.  
  339. ###### Low-level facilities and utilities
  340.  
  341. ### Include files
  342.  
  343. gschar_h=gschar.h
  344. gscie_h=gscie.h
  345. gscolor_h=gscolor.h
  346. gscolor2_h=gscolor2.h
  347. gscoord_h=gscoord.h
  348. gscrypt1_h=gscrypt1.h
  349. gscspace_h=gscspace.h
  350. gsfont_h=gsfont.h
  351. gsmatrix_h=gsmatrix.h
  352. gspaint_h=gspaint.h
  353. gspath_h=gspath.h
  354. gsprops_h=gsprops.h
  355. gsstate_h=gsstate.h $(gscolor_h)
  356. gstype1_h=gstype1.h
  357. gsutil_h=gsutil.h
  358.  
  359. gxarith_h=gxarith.h
  360. gxbitmap_h=gxbitmap.h
  361. gxcache_h=gxcache.h
  362. gxchar_h=gxchar.h $(gschar_h)
  363. gxclist_h=gxclist.h
  364. gxcpath_h=gxcpath.h
  365. gxdevice_h=gxdevice.h $(gsmatrix_h) $(gxbitmap_h)
  366. gxdevmem_h=gxdevmem.h
  367. gxfdir_h=gxfdir.h
  368. gxfixed_h=gxfixed.h
  369. gxfont_h=gxfont.h $(gsfont_h)
  370. gximage_h=gximage.h
  371. gxlum_h=gxlum.h
  372. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  373. gxop1_h=gxop1.h
  374. gxpath_h=gxpath.h
  375. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h)
  376.  
  377. gzcolor_h=gzcolor.h $(gscolor_h)
  378. gzdevice_h=gzdevice.h $(gxdevice_h)
  379. gzht_h=gzht.h
  380. gzline_h=gzline.h
  381. gzpath_h=gzpath.h $(gxpath_h)
  382. gzstate_h=gzstate.h $(gsstate_h)
  383.  
  384. ### Executable code
  385.  
  386. gsutil.$(OBJ): gsutil.c \
  387.   $(std_h) $(gsprops_h) $(gsutil_h)
  388.  
  389. gxcache.$(OBJ): gxcache.c $(GXERR) $(gpcheck_h) \
  390.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzdevice_h) $(gzcolor_h) \
  391.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  392.   $(gxcache_h) $(gzstate_h) $(gzpath_h)
  393.  
  394. gxclist.$(OBJ): gxclist.c $(GXERR) \
  395.   $(gsmatrix_h) $(gxbitmap_h) $(gxclist_h) $(gxdevice_h) $(gxdevmem_h)
  396.  
  397. gxcolor.$(OBJ): gxcolor.c $(GXERR) \
  398.   $(gscspace_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gxlum_h) \
  399.   $(gzcolor_h) $(gzht_h) $(gzstate_h)
  400.  
  401. gxcpath.$(OBJ): gxcpath.c $(GXERR) \
  402.   $(gxdevice_h) $(gxfixed_h) $(gzcolor_h) $(gzpath_h) $(gxcpath_h)
  403.  
  404. gxdither.$(OBJ): gxdither.c $(GX) \
  405.   $(gxfixed_h) $(gxlum_h) $(gxmatrix_h) $(gzstate_h) $(gzdevice_h) $(gzcolor_h) $(gzht_h)
  406.  
  407. gxdraw.$(OBJ): gxdraw.c $(GX) $(gpcheck_h) \
  408.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzcolor_h) $(gzdevice_h) $(gzstate_h)
  409.  
  410. gxfill.$(OBJ): gxfill.c $(GXERR) \
  411.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzcolor_h) $(gzpath_h) $(gzstate_h) $(gxcpath_h)
  412.  
  413. gxhint1.$(OBJ): gxhint1.c $(GXERR) \
  414.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) \
  415.   $(gzdevice_h) $(gzstate_h)
  416.  
  417. gxht.$(OBJ): gxht.c $(GXERR) \
  418.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h)
  419.  
  420. gxpath.$(OBJ): gxpath.c $(GXERR) \
  421.   $(gxfixed_h) $(gzpath_h)
  422.  
  423. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  424.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  425.  
  426. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) \
  427.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  428.  
  429. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(gpcheck_h) \
  430.   $(gscoord_h) $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) \
  431.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzline_h) $(gzpath_h)
  432.  
  433. ###### High-level facilities
  434.  
  435. gschar.$(OBJ): gschar.c $(GXERR) \
  436.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gxcache_h) $(gstype1_h) $(gspath_h) $(gzpath_h) $(gzcolor_h) $(gzstate_h)
  437.  
  438. gscolor.$(OBJ): gscolor.c $(GXERR) \
  439.   $(gscspace_h) \
  440.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzstate_h) $(gzcolor_h) $(gzht_h)
  441.  
  442. gscoord.$(OBJ): gscoord.c $(GXERR) \
  443.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzstate_h) $(gscoord_h)
  444.  
  445. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  446.   $(gxarith_h) $(gsprops_h) $(gsutil_h) $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gxdevmem_h) $(gzstate_h) $(gzdevice_h)
  447.  
  448. gsfile.$(OBJ): gsfile.c $(GXERR) \
  449.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  450.  
  451. gsfont.$(OBJ): gsfont.c $(GXERR) \
  452.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfdir_h) \
  453.   $(gzstate_h)
  454.  
  455. gsimage.$(OBJ): gsimage.c $(GXERR) $(gpcheck_h) \
  456.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  457.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  458.   $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  459.  
  460. gsimage2.$(OBJ): gsimage2.c $(GXERR) $(gpcheck_h) \
  461.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  462.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  463.   $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  464.  
  465. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  466.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  467.  
  468. gsline.$(OBJ): gsline.c $(GXERR) \
  469.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  470.  
  471. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  472.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h)
  473.  
  474. gsmisc.$(OBJ): gsmisc.c $(GX) $(MAKEFILE)
  475.     $(CCC) -DUSE_ASM=0$(USE_ASM) gsmisc.c
  476.  
  477. gspaint.$(OBJ): gspaint.c $(GXERR) $(gpcheck_h) \
  478.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzpath_h) $(gzstate_h) $(gzdevice_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  479.  
  480. gspath.$(OBJ): gspath.c $(GXERR) \
  481.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  482.  
  483. gspath2.$(OBJ): gspath2.c $(GXERR) \
  484.   $(gspath_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzpath_h) $(gzdevice_h)
  485.  
  486. gsstate.$(OBJ): gsstate.c $(GXERR) \
  487.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h) $(gzline_h) $(gzpath_h)
  488.  
  489. gstdev.$(OBJ): gstdev.c $(GXERR) \
  490.   $(gxbitmap_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  491.  
  492. gstype1.$(OBJ): gstype1.c $(GXERR) \
  493.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) $(gxdevmem_h) $(gxop1_h) $(gxtype1_h) \
  494.   $(gzstate_h) $(gzdevice_h) $(gzpath_h)
  495.  
  496. ###### The internal devices
  497.  
  498. gdevmem_h=gdevmem.h
  499.  
  500. gdevmem1.$(OBJ): gdevmem1.c $(AK) \
  501.   $(gs_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  502.  
  503. gdevmem2.$(OBJ): gdevmem2.c $(AK) \
  504.   $(gs_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  505.  
  506. gdevmem3.$(OBJ): gdevmem3.c $(AK) \
  507.   $(gs_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  508.  
  509. ###### Files dependent on the installed devices, features, and platform.
  510. # Generating gconfig.h also generates obj*.tr and lib.tr.
  511.  
  512. gconfig.h obj.tr objw.tr lib.tr: devs.mak $(MAKEFILE) echogs$(XE) $(UNIQ) \
  513.   $(DEVICE_DEVS) $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) $(DEVICE_DEVS5)\
  514.   $(FEATURE_DEVS) $(PLATFORM).dev
  515.     $(SHP)gsconfig $(DEVICE_DEVS) +
  516.     $(SHP)gsconfig + $(DEVICE_DEVS2) +
  517.     $(SHP)gsconfig + $(DEVICE_DEVS3) +
  518.     $(SHP)gsconfig + $(DEVICE_DEVS4) +
  519.     $(SHP)gsconfig + $(DEVICE_DEVS5) +
  520.     $(SHP)gsconfig + $(FEATURE_DEVS) $(PLATFORM).dev
  521.  
  522. gconfig.$(OBJ): gconfig.c $(AK) gconfig.h $(MAKEFILE)
  523.     $(CC0) -DGS_LIB_DEFAULT=$(QQ)$(GS_LIB_DEFAULT)$(QQ) -DGS_INIT=$(QQ)$(GS_INIT)$(QQ) gconfig.c
  524.  
  525. ###### On Unix, we pre-link all of the library except the back end.
  526. ###### On MS-DOS, we have to do the whole thing at once.
  527.  
  528. LIB=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) \
  529.  gsdevice.$(OBJ) gsfile.$(OBJ) gsfont.$(OBJ) gsimage.$(OBJ) gsimage2.$(OBJ) \
  530.  gsimpath.$(OBJ) gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  531.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) \
  532.  gsstate.$(OBJ) gstdev.$(OBJ) gstype1.$(OBJ) gsutil.$(OBJ) \
  533.  gxcache.$(OBJ) gxclist.$(OBJ) gxcolor.$(OBJ) gxcpath.$(OBJ) \
  534.  gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) gxhint1.$(OBJ) gxht.$(OBJ) \
  535.  gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ) gxstroke.$(OBJ) \
  536.  gdevmem1.$(OBJ) gdevmem2.$(OBJ) gdevmem3.$(OBJ) gconfig.$(OBJ)
  537.  
  538. # ------------------------------ Interpreter ------------------------------ #
  539.  
  540. ###### Include files
  541.  
  542. alloc_h=alloc.h
  543. astate_h=astate.h
  544. ccfont_h=ccfont.h
  545. dict_h=dict.h
  546. dparam_h=dparam.h
  547. dstack_h=dstack.h
  548. errors_h=errors.h
  549. estack_h=estack.h
  550. files_h=files.h
  551. font_h=font.h
  552. ghost_h=ghost.h $(gx_h) $(iref_h)
  553. iref_h=iref.h
  554. iutil_h=iutil.h
  555. main_h=main.h
  556. name_h=name.h
  557. opdef_h=opdef.h
  558. ostack_h=ostack.h
  559. overlay_h=overlay.h
  560. packed_h=packed.h
  561. save_h=save.h
  562. scanchar_h=scanchar.h
  563. scf_h=scf.h
  564. state_h=state.h
  565. store_h=store.h
  566. stream_h=stream.h
  567. # Nested include files
  568. bfont_h=bfont.h $(font_h)
  569. oper_h=oper.h $(gsutil_h) $(iutil_h) $(opdef_h) $(ostack_h)
  570. # Include files for optional features
  571. bnum_h=bnum.h
  572. bseq_h=bseq.h
  573. btoken_h=btoken.h
  574.  
  575. comp1_h=comp1.h $(ghost_h) $(oper_h) $(gserrors_h) $(gxfixed_h) $(gxop1_h)
  576.  
  577. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  578.   $(gserrors_h) $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  579.  
  580. ###### Utilities
  581.  
  582. GH=$(AK) $(ghost_h)
  583.  
  584. ialloc.$(OBJ): ialloc.c $(AK) $(gs_h) $(gdebug_h) $(alloc_h) $(astate_h)
  585.  
  586. iccfont.$(OBJ): iccfont.c $(GH) gconfig.h \
  587.  $(ghost_h) $(alloc_h) $(ccfont_h) $(dict_h) $(dstack_h) $(errors_h) $(iutil_h) $(name_h) $(oper_h) $(save_h) $(store_h)
  588.  
  589. idebug.$(OBJ): idebug.c $(GH) \
  590.  $(iutil_h) $(dict_h) $(name_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h)
  591.  
  592. idict.$(OBJ): idict.c $(GH) \
  593.   $(alloc_h) $(errors_h) $(name_h) $(packed_h) $(save_h) $(store_h) $(iutil_h) $(dict_h) $(dstack_h)
  594.  
  595. idparam.$(OBJ): idparam.c $(GH) \
  596.   $(gsmatrix_h) $(dict_h) $(dparam_h) $(errors_h) $(iutil_h)
  597.  
  598. iinit.$(OBJ): iinit.c $(GH) gconfig.h \
  599.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(name_h) $(oper_h) $(store_h)
  600.  
  601. iname.$(OBJ): iname.c $(GH) $(alloc_h) $(errors_h) $(name_h) $(store_h)
  602.  
  603. isave.$(OBJ): isave.c $(GH) $(alloc_h) $(astate_h) $(name_h) $(packed_h) $(save_h) $(store_h)
  604.  
  605. iscan.$(OBJ): iscan.c $(GH) $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(iutil_h) \
  606.  $(name_h) $(ostack_h) $(packed_h) $(store_h) $(stream_h) $(scanchar_h)
  607.  
  608. iutil.$(OBJ): iutil.c $(GH) \
  609.  $(errors_h) $(alloc_h) $(dict_h) $(iutil_h) $(name_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h) \
  610.  $(gsmatrix_h) $(gxdevice_h) $(gzcolor_h)
  611.  
  612. sfilter.$(OBJ): sfilter.c $(AK) $(std_h) $(scanchar_h) $(stream_h) \
  613.  $(gscrypt1_h)
  614.  
  615. stream.$(OBJ): stream.c $(AK) $(std_h) $(stream_h) $(scanchar_h)
  616.  
  617. ###### Operators
  618.  
  619. OP=$(GH) $(errors_h) $(oper_h)
  620.  
  621. ### Non-graphics operators
  622.  
  623. zarith.$(OBJ): zarith.c $(OP) $(store_h)
  624.  
  625. zarray.$(OBJ): zarray.c $(OP) $(alloc_h) $(packed_h) $(store_h)
  626.  
  627. zcontrol.$(OBJ): zcontrol.c $(OP) $(estack_h) $(iutil_h) $(store_h)
  628.  
  629. zdict.$(OBJ): zdict.c $(OP) $(dict_h) $(dstack_h) $(name_h) $(store_h)
  630.  
  631. zfile.$(OBJ): zfile.c $(OP) $(gp_h) \
  632.   $(alloc_h) $(estack_h) $(files_h) $(iutil_h) $(save_h) $(stream_h) $(store_h)
  633.  
  634. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  635.   $(estack_h) $(files_h) $(store_h) $(stream_h) \
  636.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  637.  
  638. zfilter.$(OBJ): zfilter.c $(OP) $(alloc_h) $(stream_h)
  639.  
  640. zgeneric.$(OBJ): zgeneric.c $(OP) $(dict_h) $(estack_h) $(name_h) $(packed_h) $(store_h)
  641.  
  642. zmath.$(OBJ): zmath.c $(OP) $(store_h)
  643.  
  644. zmisc.$(OBJ): zmisc.c $(OP) $(gp_h) \
  645.   $(alloc_h) $(dict_h) $(dstack_h) $(name_h) $(packed_h) $(store_h) \
  646.   $(gscrypt1_h)
  647.  
  648. zpacked.$(OBJ): zpacked.c $(OP) \
  649.   $(alloc_h) $(dict_h) $(name_h) $(packed_h) $(save_h) $(store_h)
  650.  
  651. zprops.$(OBJ): zprops.c $(OP) \
  652.   $(alloc_h) $(dict_h) $(name_h) $(store_h) \
  653.   $(gsprops_h) $(gsmatrix_h) $(gxdevice_h)
  654.  
  655. zrelbit.$(OBJ): zrelbit.c $(OP) $(store_h) $(dict_h)
  656.  
  657. zstack.$(OBJ): zstack.c $(OP) $(store_h)
  658.  
  659. zstring.$(OBJ): zstring.c $(OP) $(alloc_h) $(iutil_h) $(name_h) $(store_h) $(stream_h)
  660.  
  661. ztype.$(OBJ): ztype.c $(OP) $(dict_h) $(iutil_h) $(name_h) $(stream_h) $(store_h)
  662.  
  663. zvmem.$(OBJ): zvmem.c $(OP) $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(save_h) $(state_h) $(store_h) \
  664.   $(gsmatrix_h) $(gsstate_h)
  665.  
  666. ###### Graphics operators
  667.  
  668. zchar.$(OBJ): zchar.c $(OP) $(gxfixed_h) $(gxmatrix_h) \
  669.  $(gschar_h) $(gxtype1_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h) \
  670.  $(alloc_h) $(dict_h) $(dstack_h) $(font_h) $(estack_h) $(state_h) $(store_h)
  671.  
  672. zcolor.$(OBJ): zcolor.c $(OP) $(alloc_h) $(estack_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gzcolor_h) $(iutil_h) $(state_h) $(store_h)
  673.  
  674. zdevice.$(OBJ): zdevice.c $(OP) $(alloc_h) $(state_h) $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  675.  
  676. zfont.$(OBJ): zfont.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) $(gxfdir_h) \
  677.  $(alloc_h) $(bfont_h) $(dict_h) $(name_h) $(packed_h) $(save_h) $(state_h) $(store_h)
  678.  
  679. zfont1.$(OBJ): zfont1.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  680.  $(bfont_h) $(dict_h) $(dparam_h) $(name_h) $(store_h)
  681.  
  682. zfont2.$(OBJ): zfont2.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  683.  $(alloc_h) $(bfont_h) $(dict_h) $(dparam_h) $(name_h) $(packed_h) $(store_h)
  684.  
  685. zgstate.$(OBJ): zgstate.c $(OP) $(alloc_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  686.  
  687. zht.$(OBJ): zht.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  688.  
  689. zmatrix.$(OBJ): zmatrix.c $(OP) $(gsmatrix_h) $(state_h) $(gscoord_h) $(store_h)
  690.  
  691. zpaint.$(OBJ): zpaint.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gspaint_h) $(state_h) $(store_h) $(stream_h)
  692.  
  693. zpath.$(OBJ): zpath.c $(OP) $(gsmatrix_h) $(gspath_h) $(state_h) $(store_h)
  694.  
  695. zpath2.$(OBJ): zpath2.c $(OP) $(alloc_h) $(estack_h) $(gspath_h) $(state_h) $(store_h)
  696.  
  697. ###### Linking
  698.  
  699. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ) \
  700.  iinit.$(OBJ) iname.$(OBJ) \
  701.  interp.$(OBJ) isave.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) \
  702.  sfilter.$(OBJ) stream.$(OBJ) \
  703.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) \
  704.  zfile.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zgeneric.$(OBJ) \
  705.  zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zprops.$(OBJ) zrelbit.$(OBJ) \
  706.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  707.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zfont1.$(OBJ) zfont2.$(OBJ) \
  708.  zdevice.$(OBJ) zgstate.$(OBJ) zht.$(OBJ) zmatrix.$(OBJ) \
  709.  zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  710.  
  711. # -------------------------- Optional features ---------------------------- #
  712.  
  713. ### Additions common to Display PostScript and Level 2
  714.  
  715. dpsand2_=gsdps1.$(OBJ) ibnum.$(OBJ) ibscan.$(OBJ) \
  716.  zbseq.$(OBJ) zdps1.$(OBJ) zupath.$(OBJ)
  717. dpsand2.dev: $(dpsand2_)
  718.     $(SHP)gssetmod dpsand2 $(dpsand2_)
  719.     $(SHP)gsaddmod dpsand2 -oper zbseq zdps1 zupath
  720.     $(SHP)gsaddmod dpsand2 -ps gs_dps1
  721.  
  722. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(gsmatrix_h) $(gspath_h)
  723.  
  724. ibnum.$(OBJ): ibnum.c $(GH) $(errors_h) $(stream_h) $(bnum_h) $(btoken_h)
  725.  
  726. ibscan.$(OBJ): ibscan.c $(GH) $(errors_h) \
  727.  $(alloc_h) $(dict_h) $(dstack_h) $(iutil_h) $(name_h) $(ostack_h) $(save_h) $(store_h) $(stream_h) $(bseq_h) $(btoken_h) $(bnum_h)
  728.  
  729. zbseq.$(OBJ): zbseq.c $(OP) $(save_h) $(store_h) $(stream_h) $(files_h) $(name_h) $(bnum_h) $(btoken_h) $(bseq_h)
  730.  
  731. zdps1.$(OBJ): zdps1.c $(OP) $(gsmatrix_h) $(gspath_h) $(gsstate_h) \
  732.  $(alloc_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  733.  
  734. zupath.$(OBJ): zupath.c $(OP) \
  735.  $(dict_h) $(dstack_h) $(iutil_h) $(state_h) $(store_h) $(stream_h) $(bnum_h) \
  736.  $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  737.  $(gxfixed_h) $(gxdevice_h) $(gxpath_h)
  738.  
  739. ### Display PostScript
  740. # We should include zcontext, but it isn't in good enough shape yet:
  741. #    $(SHP)gsaddmod dps -oper zcontext
  742.  
  743. dps_=
  744. dps.dev: dpsand2.dev $(dps_)
  745.     $(SHP)gssetmod dps $(dps_)
  746.     $(SHP)gsaddmod dps -include dpsand2
  747.  
  748. zcontext.$(OBJ): zcontext.c $(OP) \
  749.  $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(state_h) $(store_h)
  750.  
  751. ### Level 2 additions
  752. # We should include gscie and zcie, but they aren't anywhere near ready.
  753.  
  754. level2_=gscolor2.$(OBJ) zcolor2.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ)
  755. level2.dev: dpsand2.dev $(level2_)
  756.     $(SHP)gssetmod level2 $(level2_)
  757.     $(SHP)gsaddmod level2 -include dpsand2
  758.     $(SHP)gsaddmod level2 -oper zcolor2 zimage2
  759.     $(SHP)gsaddmod level2 -ps gs_lev2
  760.  
  761. gscie.$(OBJ): gscie.c $(std_h) \
  762.   $(gscspace_h) $(gscie_h)
  763.  
  764. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  765.   $(gscolor2_h) $(gscspace_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  766.   $(gzcolor_h) $(gzstate_h)
  767.  
  768. zcie.$(OBJ): zcie.c $(OP) $(gscspace_h) $(gscie_h) \
  769.   $(dict_h) $(dparam_h) $(state_h)
  770.  
  771. zcolor2.$(OBJ): zcolor2.c $(OP) \
  772.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  773.   $(dict_h) $(dparam_h) $(name_h) $(state_h) $(store_h)
  774.  
  775. zht2.$(OBJ): zht2.c $(OP) \
  776.   $(dict_h) $(dparam_h) $(name_h) $(state_h) $(store_h)
  777.  
  778. zimage2.$(OBJ): zimage2.c $(OP) \
  779.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  780.   $(dict_h) $(dparam_h) $(state_h)
  781.  
  782. ### Composite font support
  783.  
  784. gschar0.$(OBJ): gschar0.c $(GXERR) \
  785.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gzstate_h)
  786.  
  787. zfont0.$(OBJ): zfont0.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) \
  788.  $(alloc_h) $(bfont_h) $(dict_h) $(name_h) $(state_h) $(store_h)
  789.  
  790. compfont_=zfont0.$(OBJ) gschar0.$(OBJ)
  791. compfont.dev: $(compfont_)
  792.     $(SHP)gssetmod compfont $(compfont_)
  793.     $(SHP)gsaddmod compfont -oper zfont0
  794.  
  795. ### Filters other than the ones in sfilter.c
  796.  
  797. scftab.$(OBJ): scftab.c $(AK) $(std_h) $(scf_h)
  798.  
  799. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scf_h)
  800.  
  801. scfd.$(OBJ): scfd.c $(AK) $(std_h) $(gdebug_h) $(scf_h) $(stream_h)
  802.  
  803. scfe.$(OBJ): scfe.c $(AK) $(std_h) $(gdebug_h) $(scf_h) $(stream_h)
  804.  
  805. sfilter2.$(OBJ): sfilter2.c $(AK) $(std_h) $(scanchar_h) $(stream_h)
  806.  
  807. slzwd.$(OBJ): slzwd.c $(AK) $(std_h) $(gdebug_h) $(stream_h)
  808.  
  809. slzwe.$(OBJ): slzwe.c $(AK) $(std_h) $(gdebug_h) $(stream_h)
  810.  
  811. zfilter2.$(OBJ): zfilter2.c $(OP) $(alloc_h) $(dict_h) $(dparam_h) $(stream_h)
  812.  
  813. # Because of size limits on the DOS command line,
  814. # we have to break this up into two parts.
  815. filter_1=zfilter2.$(OBJ) sfilter2.$(OBJ)
  816. filter_2=scfd.$(OBJ) scfe.$(OBJ) scfdtab.$(OBJ) scftab.$(OBJ) slzwd.$(OBJ) slzwe.$(OBJ)
  817. filter.dev: $(filter_1) $(filter_2)
  818.     $(SHP)gssetmod filter $(filter_1)
  819.     $(SHP)gsaddmod filter -obj $(filter_2)
  820.     $(SHP)gsaddmod filter -oper zfilter2
  821.  
  822. ### Precompiled fonts.  See fonts.doc for more information.
  823.  
  824. CCFONT=$(OP) $(ccfont_h)
  825.  
  826. ccfonts_=ugly.$(OBJ)
  827. ccfonts.dev: $(ccfonts_) iccfont.$(OBJ)
  828.     $(SHP)gssetmod ccfonts $(ccfonts_) iccfont.$(OBJ)
  829.     $(SHP)gsaddmod ccfonts -oper ccfonts
  830.     $(SHP)gsaddmod ccfonts -font Ugly
  831.  
  832. ugly.$(OBJ): ugly.c $(CCFONT)
  833.  
  834. ncrr.$(OBJ): ncrr.c $(CCFONT)
  835.  
  836. psyr.$(OBJ): psyr.c $(CCFONT)
  837.  
  838. ptmr.$(OBJ): ptmr.c $(CCFONT)
  839.  
  840. pzdr.$(OBJ): pzdr.c $(CCFONT)
  841.  
  842. # ----------------------------- Main program ------------------------------ #
  843.  
  844. # Interpreter main program
  845.  
  846. gs.$(OBJ): gs.c $(GH) $(gxdevice_h) $(gxdevmem_h) \
  847.   $(alloc_h) $(errors_h) $(estack_h) $(main_h) $(ostack_h) $(store_h) $(stream_h)
  848.  
  849. gsmain.$(OBJ): gsmain.c $(GH) \
  850.   $(gp_h) $(gsmatrix_h) $(gxdevice_h) $(gserrors_h) \
  851.   $(estack_h) $(main_h) $(ostack_h) $(store_h)
  852.  
  853. interp.$(OBJ): interp.c $(GH) \
  854.   $(errors_h) $(estack_h) $(name_h) $(dict_h) $(dstack_h) $(oper_h) $(ostack_h) $(packed_h) $(save_h) $(store_h) $(stream_h)
  855.     $(CCINT) interp.c
  856. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  857. #    Distributed by Free Software Foundation, Inc.
  858. #
  859. # This file is part of Ghostscript.
  860. #
  861. # Ghostscript is distributed in the hope that it will be useful, but
  862. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  863. # to anyone for the consequences of using it or for whether it serves any
  864. # particular purpose or works at all, unless he says so in writing.  Refer
  865. # to the Ghostscript General Public License for full details.
  866. #
  867. # Everyone is granted permission to copy, modify and redistribute
  868. # Ghostscript, but only under the conditions described in the Ghostscript
  869. # General Public License.  A copy of this license is supposed to have been
  870. # given to you along with Ghostscript so you can know your rights and
  871. # responsibilities.  It should be in a file named COPYING.  Among other
  872. # things, the copyright notice and this notice must be preserved on all
  873. # copies.
  874.  
  875. # makefile for Ghostscript device drivers.
  876.  
  877. # -------------------------------- Catalog ------------------------------- #
  878.  
  879. # It is possible to build Ghostscript with an arbitrary collection of
  880. # device drivers, although some drivers are supported only on a subset
  881. # of the target platforms.  The currently available drivers are:
  882.  
  883. # Displays:
  884. #   MS-DOS EGA and VGA:
  885. #    ega    EGA (640x350, 16-color)
  886. #    vga    VGA (640x480, 16-color)
  887. #   MS-DOS SuperVGA:
  888. # +    atiw    ATI Wonder SuperVGA, 256-color modes
  889. # *    mdb10    EIZO MDB-10 (1024 x 768)
  890. #    s3vga    SuperVGA with S3 86C911 chip (e.g., Diamond Stealth board)
  891. #    tseng    SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  892. #    tseng16  Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
  893. # +    tvga    Trident SuperVGA, 256-color modes
  894. # +    tvga16    Trident SuperVGA in 800x600, 16-color mode (256K memory)
  895. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  896. #   ****** compiler or executable.
  897. #    vesa    SuperVGA with VESA standard API driver
  898. #   MS-DOS other:
  899. #    bgi    Borland Graphics Interface (CGA and Hercules)
  900. #    mswin    Microsoft Windows 3.0, 3.1
  901. # *    pe    Private Eye
  902. #   Unix and VMS:
  903. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  904. # *    sunview  SunView window system   [SunOS only]
  905. #    x11    X Windows version 11, release >=3   [Unix and VMS only]
  906. # Printers:
  907. #    bj10e    Canon BubbleJet BJ10e
  908. # *    cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  909. # *    cdjcolor  H-P DeskJet 500C with 8 bit/pixel color and
  910. #        high-quality color (Floyd-Steinberg) dithering
  911. # *    cdjmono  H-P DeskJet 500C printing black only
  912. # +    deskjet  H-P DeskJet and DeskJet Plus
  913. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  914. # *    dfaxlow  DigiFAX low (normal) resolution
  915. #    djet500  H-P DeskJet 500
  916. # *    djet500c  H-P DeskJet 500C
  917. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  918. # +    eps9high  Epson-compatible 9-pin, interleaved lines
  919. #        (triple resolution)
  920. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  921. # +    laserjet  H-P LaserJet
  922. # *    la50    DEC LA50 printer
  923. # *    la75    DEC LA75 printer
  924. # *    lbp8    Canon LBP-8II laser printer
  925. # *    ln03    DEC LN03 printer
  926. # *    lj250    DEC LJ250 Companion color printer
  927. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  928. # +    ljet3    H-P LaserJet III* with Delta Row compression
  929. # *    ljetplus  H-P LaserJet Plus
  930. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  931. #    paintjet  H-P PaintJet color printer
  932. # *    pjetxl    H-P PaintJet XL color printer
  933. # *    r4081    Ricoh 4081 laser printer
  934. # *    tek4696  Tektronix 4695/4696 inkjet plotter
  935. # *    trufax    TruFax facsimile driver  [Unix only]
  936. # File formats and others:
  937. #    bit    A plain "bit bucket" device
  938. #    gifmono    Monochrome GIF file format
  939. #    gif8    8-bit color GIF file format
  940. #    pcxmono    Monochrome PCX file format
  941. #    pcx16    Older color PCX file format (EGA/VGA, 16-color)
  942. #    pcx256    Newer color PCX file format (256-color)
  943. #    pbm    Portable Bitmap (plain format)
  944. #    pbmraw    Portable Bitmap (raw format)
  945. #    pgm    Portable Graymap (plain format)
  946. #    pgmraw    Portable Graymap (raw format)
  947. #    ppm    Portable Pixmap (plain format)
  948. #    ppmraw    Portable Pixmap (raw format)
  949.  
  950. # User-contributed drivers marked with * require hardware or software
  951. # that is not available to Aladdin Enterprises.  Please contact the
  952. # original contributors, not Aladdin Enterprises, if you have questions.
  953. # Contact information appears in the driver entry below.
  954. #
  955. # Drivers marked with a + are maintained by Aladdin Enterprises with
  956. # the assistance of users, since Aladdin Enterprises doesn't have access to
  957. # the hardware for these either.
  958.  
  959. # If you add drivers, it would be nice if you kept each list
  960. # in alphabetical order.
  961.  
  962. # Each platform-specific makefile contains a line of the form
  963. #    DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  964. # where dev1 ... devn are the devices to be included in the build.
  965. # You may edit this line to select any desired set of devices.
  966. # dev1 will be used as the default device (unless overridden from
  967. # the command line with -sDEVICE=xxx, of course.)  If you can't fit all the
  968. # devices on a single line, you may add lines defining
  969. #    DEVICE_DEVS2=<dev21>.dev ... <dev2n>.dev
  970. #    DEVICE_DEVS3=<dev31>.dev ... <dev3n>.dev
  971. # etc. up to DEVICE_DEVS5.
  972. # Don't use continuation lines, since this may break the MS-DOS command
  973. # processor.
  974.  
  975. # ---------------------------- End of catalog ---------------------------- #
  976.  
  977. # If you want to add a new device driver, the examples below should be
  978. # enough of a guide to the correct form for the makefile rules.
  979.  
  980. # All device drivers depend on the following:
  981. GDEV=$(AK) echogs$(XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  982.  
  983. # Define the header files for device drivers.  Every header file used by
  984. # more than one device driver must be listed here.
  985. gdevpccm_h=gdevpccm.h
  986. gdevpcfb_h=gdevpcfb.h
  987. gdevpcl_h=gdevpcl.h
  988. gdevsvga_h=gdevsvga.h
  989. gdevx_h=gdevx.h
  990.  
  991. ###### ------------------- MS-DOS display devices ------------------- ######
  992.  
  993. # There are really only two drivers: an EGA/VGA driver (4 bit-planes,
  994. # plane-addressed) and a SuperVGA driver (8 bit-planes, byte addressed).
  995.  
  996. ### ----------------------- EGA and VGA displays ----------------------- ###
  997.  
  998. gdevegaa.$(OBJ): gdevegaa.asm
  999.  
  1000. ETEST=ega.$(OBJ) $(ega_) gdevpcfb.$(OBJ) gdevegaa.$(OBJ)
  1001. ega.exe: $(ETEST) libc$(MM).tr
  1002.     $(COMPDIR)\tlink /v $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  1003.  
  1004. ega.$(OBJ): ega.c $(GDEV)
  1005.     $(CCC) -v ega.c
  1006.  
  1007. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  1008. # or an empty string.
  1009.  
  1010. EGAVGA=gdevpcfb.$(OBJ) $(PCFBASM)
  1011.  
  1012. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(dos__h) $(gdevpcfb_h)
  1013.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
  1014.  
  1015. # The EGA/VGA family includes: EGA, VGA, and MDB-10, and the
  1016. # Tseng ET3000/4000 and Trident SuperVGA in 16-color mode.
  1017.  
  1018. ega.dev: $(EGAVGA)
  1019.     $(SHP)gssetdev ega $(EGAVGA)
  1020.  
  1021. vga.dev: $(EGAVGA)
  1022.     $(SHP)gssetdev vga $(EGAVGA)
  1023.  
  1024. mdb10.dev: $(EGAVGA)
  1025.     $(SHP)gssetdev mdb10 $(EGAVGA)
  1026.  
  1027. tseng16.dev: $(EGAVGA)
  1028.     $(SHP)gssetdev tseng16 $(EGAVGA)
  1029.  
  1030. tvga16.dev: $(EGAVGA)
  1031.     $(SHP)gssetdev tvga16 $(EGAVGA)
  1032.  
  1033. ### ------------------------- SuperVGA displays ------------------------ ###
  1034.  
  1035. SVGA=gdevsvga.$(OBJ) $(PCFBASM)
  1036.  
  1037. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(dos__h) $(gdevpcfb_h) $(gdevsvga_h)
  1038.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
  1039.  
  1040. # The SuperVGA family includes: ATI Wonder, S3, Trident, Tseng ET3000/4000,
  1041. # and VESA.
  1042.  
  1043. atiw.dev: $(SVGA)
  1044.     $(SHP)gssetdev atiw $(SVGA)
  1045.  
  1046. tseng.dev: $(SVGA)
  1047.     $(SHP)gssetdev tseng $(SVGA)
  1048.  
  1049. tvga.dev: $(SVGA)
  1050.     $(SHP)gssetdev tvga $(SVGA)
  1051.  
  1052. vesa.dev: $(SVGA)
  1053.     $(SHP)gssetdev vesa $(SVGA)
  1054.  
  1055. # The S3 driver doesn't share much code with the others.
  1056.  
  1057. s3vga_=$(SVGA) gdevs3ga.$(OBJ)
  1058. s3vga.dev: $(s3vga_)
  1059.     $(SHP)gssetdev s3vga $(s3vga_)
  1060.  
  1061. gdevs3ga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h) $(gdevsvga_h)
  1062.     $(CCD) gdevs3ga.c
  1063.  
  1064. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  1065.  
  1066. # We should use an implicit rule for running bgiobj,
  1067. # but a bug in Borland's `make' utility makes this not work.
  1068.  
  1069. cga.$(OBJ): $(BGIDIR)\cga.bgi
  1070.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1071.  
  1072. egavga.$(OBJ): $(BGIDIR)\egavga.bgi
  1073.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1074.  
  1075. herc.$(OBJ): $(BGIDIR)\herc.bgi
  1076.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1077.  
  1078. # Include egavga.$(OBJ) for debugging only.
  1079. bgi_=gdevbgi.$(OBJ) cga.$(OBJ) herc.$(OBJ)
  1080. bgi.dev: $(bgi_)
  1081.     $(SHP)gssetdev bgi $(bgi_)
  1082.     $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
  1083.  
  1084. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE)
  1085.     $(CCC) -DBGI_LIB=$(QQ)$(BGIDIR)$(QQ) gdevbgi.c
  1086.  
  1087. ###### ------------------- The Private Eye display ------------------- ######
  1088. ### Note: this driver was contributed by a user:                          ###
  1089. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  1090.  
  1091. pe_=gdevpe.$(OBJ)
  1092. pe.dev: $(pe_)
  1093.     $(SHP)gssetdev pe $(pe_)
  1094.  
  1095. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  1096.  
  1097. ###### ----------------- The MS-Windows 3.n display ------------------ ######
  1098.  
  1099. mswin_=gdevmswn.$(OBJ)
  1100. mswin.dev: $(mswin_)
  1101.     $(SHP)gssetdev mswin $(mswin_)
  1102.  
  1103. gdevmswn.$(OBJ): gdevmswn.c $(GDEV) $(gp_h) $(gpcheck_h)
  1104.  
  1105. ###### --------------- Memory-buffered printer devices --------------- ######
  1106.  
  1107. PDEVH=$(GDEV) $(gdevprn_h)
  1108.  
  1109. gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
  1110.  
  1111. ### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
  1112.  
  1113. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  1114. bj10e.dev: $(bj10e_)
  1115.     $(SHP)gssetdev bj10e $(bj10e_)
  1116.  
  1117. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  1118.  
  1119. ### -------------------------- The DigiFAX device ----------------------- ###
  1120. ###    This driver outputs images in a format suitable for use with       ###
  1121. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  1122. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  1123. ### Note: this driver was contributed by a user: please contact           ###
  1124. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  1125.  
  1126. digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
  1127. dfaxhigh.dev: $(digifax_)
  1128.     $(SHP)gssetdev dfaxhigh $(digifax_)
  1129.  
  1130. dfaxlow.dev: $(digifax_)
  1131.     $(SHP)gssetdev dfaxlow $(digifax_)
  1132.  
  1133. gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
  1134.  
  1135. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  1136.  
  1137. ### These are essentially the same device.
  1138. ### You can make A4 paper the default: see below.
  1139. ### NOTE: printing at full resolution (300 DPI) requires a printer
  1140. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  1141.  
  1142. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
  1143. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  1144.  
  1145. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  1146.  
  1147. # To make A4 paper the default, change the second line below this to
  1148. #    $(CCC) -DA4 gdevdjet.c
  1149. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  1150.     $(CCC) gdevdjet.c
  1151.  
  1152. deskjet.dev: $(HPMONO)
  1153.     $(SHP)gssetdev deskjet $(HPMONO)
  1154.  
  1155. djet500.dev: $(HPMONO)
  1156.     $(SHP)gssetdev djet500 $(HPMONO)
  1157.  
  1158. laserjet.dev: $(HPMONO)
  1159.     $(SHP)gssetdev laserjet $(HPMONO)
  1160.  
  1161. ljetplus.dev: $(HPMONO)
  1162.     $(SHP)gssetdev ljetplus $(HPMONO)
  1163.  
  1164. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  1165. ### IIIp, IIId, IIIsi, IId, and IIp. 
  1166.  
  1167. ljet2p.dev: $(HPMONO)
  1168.     $(SHP)gssetdev ljet2p $(HPMONO)
  1169.  
  1170. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  1171. ### IIIp, IIId, IIIsi.
  1172.  
  1173. ljet3.dev: $(HPMONO)
  1174.     $(SHP)gssetdev ljet3 $(HPMONO)
  1175.  
  1176. ### ------------ The H-P DeskJet 500C color printer device -------------- ###
  1177. ### Note: there are two different 500C drivers, both contributed by users.###
  1178. ###   If you have questions about the djet500c driver,                    ###
  1179. ###       please contact AKayser@et.tudelft.nl.                           ###
  1180. ###   If you have questions about the cdeskjet/cdjcolor/cdjmono drivers,  ###
  1181. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  1182.  
  1183. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  1184.  
  1185. cdeskjet.dev: $(cdeskjet_)
  1186.     $(SHP)gssetdev cdeskjet $(cdeskjet_)
  1187.  
  1188. cdjcolor.dev: $(cdeskjet_)
  1189.     $(SHP)gssetdev cdjcolor $(cdeskjet_)
  1190.  
  1191. cdjmono.dev: $(cdeskjet_)
  1192.     $(SHP)gssetdev cdjmono $(cdeskjet_)
  1193.  
  1194. # To make A4 paper the default, change the second line below this to
  1195. #    $(CCC) -DA4 gdevdjet.c
  1196. gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
  1197.     $(CCC) gdevcdj.c
  1198.  
  1199. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  1200. djet500c.dev: $(djet500c_)
  1201.     $(SHP)gssetdev djet500c $(djet500c_)
  1202.  
  1203. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
  1204.  
  1205. ### ----------------- The generic Epson printer device ----------------- ###
  1206.  
  1207. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  1208.  
  1209. epson.dev: $(epson_)
  1210.     $(SHP)gssetdev epson $(epson_)
  1211.  
  1212. eps9high.dev: $(epson_)
  1213.     $(SHP)gssetdev eps9high $(epson_)
  1214.  
  1215. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH) devs.mak
  1216.  
  1217. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  1218. ### Note: this driver was contributed by users: please contact           ###
  1219. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  1220.  
  1221. epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
  1222. epsonc.dev: $(epsonc_)
  1223.     $(SHP)gssetdev epsonc $(epsonc_)
  1224.  
  1225. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH) devs.mak
  1226.  
  1227. ### ------------ The H-P PaintJet color printer device ----------------- ###
  1228. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  1229. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  1230. ### If you have questions about the XL, please contact Rob Reiss         ###
  1231. ###       (rob@moray.berkeley.edu).                                      ###
  1232.  
  1233. PJET=gdevpjet.$(OBJ) $(HPPCL)
  1234.  
  1235. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  1236.  
  1237. lj250.dev: $(PJET)
  1238.     $(SHP)gssetdev lj250 $(PJET)
  1239.  
  1240. paintjet.dev: $(PJET)
  1241.     $(SHP)gssetdev paintjet $(PJET)
  1242.  
  1243. pjetxl.dev: $(PJET)
  1244.     $(SHP)gssetdev pjetxl $(PJET)
  1245.  
  1246. ### ----------------- The Canon LBP-8II printer device ----------------- ###
  1247. ### Note: this driver was contributed by users: please contact           ###
  1248. ###       Tom Quinn (trq@prg.oxford.ac.uk) if you have questions.        ###
  1249. ### Note that the standard paper size for this driver is the European    ###
  1250. ###   A4 size, not the American 8.5" x 11" size.                         ###
  1251.  
  1252. lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
  1253. lbp8.dev: $(lbp8_)
  1254.     $(SHP)gssetdev lbp8 $(lbp8_)
  1255.  
  1256. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  1257.  
  1258. ### -------------- The DEC LN03/LA50/LA75 printer devices -------------- ###
  1259. ### Note: this driver was contributed by users: please contact           ###
  1260. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  1261. ### A more general sixel driver is available from                        ###
  1262. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                      ###
  1263.  
  1264. ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
  1265. ln03.dev: $(ln03_)
  1266.     $(SHP)gssetdev ln03 $(ln03_)
  1267.  
  1268. la50.dev: $(ln03_)
  1269.     $(SHP)gssetdev la50 $(ln03_)
  1270.  
  1271. la75.dev: $(ln03_)
  1272.     $(SHP)gssetdev la75 $(ln03_)
  1273.  
  1274. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  1275.  
  1276. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  1277. ### Note: this driver was contributed by users:                          ###
  1278. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  1279.  
  1280. r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
  1281. r4081.dev: $(r4081_)
  1282.     $(SHP)gssetdev r4081 $(r4081_)
  1283.  
  1284. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  1285.  
  1286. ###### ------------------------ Sony devices ------------------------ ######
  1287. ### Note: these drivers were contributed by users: please contact        ###
  1288. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  1289.  
  1290. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  1291.  
  1292. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  1293. sonyfb.dev: $(sonyfb_)
  1294.     $(SHP)gssetdev sonyfb $(sonyfb_)
  1295.  
  1296. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  1297.  
  1298. ### -------------------- Sony NWP533 printer device -------------------- ###
  1299.  
  1300. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  1301. nwp533.dev: $(nwp533_)
  1302.     $(SHP)gssetdev nwp533 $(nwp533_)
  1303.  
  1304. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  1305.  
  1306. ###### --------------------- The SunView device --------------------- ######
  1307. ### Note: this driver is maintained by a user: if you have questions,    ###
  1308. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  1309.  
  1310. sunview_=gdevsun.$(OBJ)
  1311. sunview.dev: $(sunview_)
  1312.     $(SHP)gssetdev sunview $(sunview_)
  1313.     $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
  1314.  
  1315. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
  1316.  
  1317. ### -------------------- Tektronix ink-jet printers -------------------- ###
  1318. ### Note: this driver was contributed by a user: please contact          ###
  1319. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  1320.  
  1321. tek4696_=gdevtknk.$(OBJ) gdevprn.$(OBJ)
  1322. tek4696.dev: $(tek4696_)
  1323.     $(SHP)gssetdev tek4696 $(tek4696_)
  1324.  
  1325. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH)
  1326.  
  1327. ### ----------------- The TruFax facsimile device ---------------------- ###
  1328. ### Note: this driver was contributed by users: please contact           ###
  1329. ###       Neil Ostroff (nao@maestro.bellcore.com) if you have questions. ###
  1330. ### Note that the driver requires a file encode_l.o supplied by the      ###
  1331. ###   makers of the TruFax product.                                      ###
  1332.  
  1333. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  1334. trufax.dev: $(trufax_)
  1335.     $(SHP)gssetdev trufax $(trufax_)
  1336.  
  1337. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  1338.  
  1339. ###### ----------------------- The X11 device ----------------------- ######
  1340.  
  1341. # Aladdin Enterprises does not support Ghostview.  For more information
  1342. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  1343.  
  1344. x11_=gdevx.$(OBJ) gdevxini.$(OBJ)
  1345. x11.dev: $(x11_)
  1346.     $(SHP)gssetdev x11 $(x11_)
  1347.     $(SHP)gsaddmod x11 -lib X11
  1348.  
  1349. # See the main makefile for the definition of XINCLUDE.
  1350. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  1351. gdevx.$(OBJ): gdevx.c $(GDEVX)
  1352.     $(CCC) $(XINCLUDE) gdevx.c
  1353.  
  1354. gdevxini.$(OBJ): gdevxini.c $(GDEVX)
  1355.     $(CCC) $(XINCLUDE) gdevxini.c
  1356.  
  1357. ### ---------------------- The bit bucket device ----------------------- ###
  1358.  
  1359. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  1360. bit.dev: $(bit_)
  1361.     $(SHP)gssetdev bit $(bit_)
  1362.  
  1363. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  1364.  
  1365. ###### ----------------------- PC file formats ---------------------- ######
  1366.  
  1367. gdevpccm.$(OBJ): gdevpccm.c $(gs_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  1368.  
  1369. ### ------------------------- GIF file formats ------------------------- ###
  1370.  
  1371. GIF=gdevgif.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1372.  
  1373. gdevgif.$(OBJ): gdevgif.c $(PDEVH) $(gdevpccm_h)
  1374.  
  1375. gifmono.dev: $(GIF)
  1376.     $(SHP)gssetdev gifmono $(GIF)
  1377.  
  1378. gif8.dev: $(GIF)
  1379.     $(SHP)gssetdev gif8 $(GIF)
  1380.  
  1381. ### ------------------------- PCX file formats ------------------------- ###
  1382.  
  1383. PCX=gdevpcx.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1384.  
  1385. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h)
  1386.  
  1387. pcxmono.dev: $(PCX)
  1388.     $(SHP)gssetdev pcxmono $(PCX)
  1389.  
  1390. pcx16.dev: $(PCX)
  1391.     $(SHP)gssetdev pcx16 $(PCX)
  1392.  
  1393. pcx256.dev: $(PCX)
  1394.     $(SHP)gssetdev pcx256 $(PCX)
  1395.  
  1396. ###### ------------------- Portable Bitmap devices ------------------ ######
  1397. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  1398.  
  1399. PXM=gdevpbm.$(OBJ) gdevprn.$(OBJ)
  1400.  
  1401. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gxlum_h)
  1402.  
  1403. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  1404.  
  1405. pbm.dev: $(PXM)
  1406.     $(SHP)gssetdev pbm $(PXM)
  1407.  
  1408. pbmraw.dev: $(PXM)
  1409.     $(SHP)gssetdev pbmraw $(PXM)
  1410.  
  1411. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  1412.  
  1413. pgm.dev: $(PXM)
  1414.     $(SHP)gssetdev pgm $(PXM)
  1415.  
  1416. pgmraw.dev: $(PXM)
  1417.     $(SHP)gssetdev pgmraw $(PXM)
  1418.  
  1419. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  1420.  
  1421. ppm.dev: $(PXM)
  1422.     $(SHP)gssetdev ppm $(PXM)
  1423.  
  1424. ppmraw.dev: $(PXM)
  1425.     $(SHP)gssetdev ppmraw $(PXM)
  1426. #    Copyright (C) 1990, 1992 Aladdin Enterprises.  All rights reserved.
  1427. #    Distributed by Free Software Foundation, Inc.
  1428. #
  1429. # This file is part of Ghostscript.
  1430. #
  1431. # Ghostscript is distributed in the hope that it will be useful, but
  1432. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1433. # to anyone for the consequences of using it or for whether it serves any
  1434. # particular purpose or works at all, unless he says so in writing.  Refer
  1435. # to the Ghostscript General Public License for full details.
  1436. #
  1437. # Everyone is granted permission to copy, modify and redistribute
  1438. # Ghostscript, but only under the conditions described in the Ghostscript
  1439. # General Public License.  A copy of this license is supposed to have been
  1440. # given to you along with Ghostscript so you can know your rights and
  1441. # responsibilities.  It should be in a file named COPYING.  Among other
  1442. # things, the copyright notice and this notice must be preserved on all
  1443. # copies.
  1444.  
  1445. # Partial makefile for Ghostscript, common to all Unix configurations.
  1446.  
  1447. # This is the last part of the makefile for Unix configurations.
  1448. # Since Unix make doesn't have an 'include' facility, we concatenate
  1449. # the various parts of the makefile together by brute force (in tar_cat).
  1450.  
  1451. # The following prevents GNU make from constructing argument lists that
  1452. # include all environment variables, which can easily be longer than
  1453. # brain-damaged system V allows.
  1454.  
  1455. .NOEXPORT:
  1456.  
  1457. # -------------------------------- Library -------------------------------- #
  1458.  
  1459. ## The Unix platforms
  1460.  
  1461. # All reasonable Unix platforms.
  1462. unix__=gp_unix.$(OBJ)
  1463. unix_.dev: $(unix__)
  1464.     $(SHP)gssetmod unix_ $(unix__)
  1465.  
  1466. gp_unix.$(OBJ): gp_unix.c $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  1467.  $(stat__h) $(time__h)
  1468.  
  1469. # Brain-damaged System V platforms.
  1470. sysv__=gp_unix.$(OBJ) gp_sysv.$(OBJ)
  1471. sysv_.dev: $(sysv__)
  1472.     $(SHP)gssetmod sysv_ $(sysv__)
  1473.  
  1474. gp_sysv.$(OBJ): gp_sysv.c
  1475.  
  1476. # -------------------------- Auxiliary programs --------------------------- #
  1477.  
  1478. ansi2knr$(XE): ansi2knr.c
  1479.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  1480.  
  1481. echogs$(XE): echogs.c
  1482.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  1483.  
  1484. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  1485. # produces a buggy executable.
  1486. genarch$(XE): genarch.c
  1487.     $(CC) -o genarch$(XE) genarch.c
  1488.  
  1489. # ----------------------------- Main program ------------------------------ #
  1490.  
  1491. # Main program
  1492.  
  1493. ALLUNIX=gsmain.$(OBJ) $(LIB)
  1494.  
  1495. # Interpreter main program
  1496.  
  1497. GSUNIX=gs.$(OBJ) $(INT) $(ALLUNIX)
  1498.  
  1499. # The second call on echogs writes a \.  This is the only
  1500. # way to do it that works with all flavors of shell!
  1501. gs: $(GSUNIX) obj.tr lib.tr echogs
  1502.     ./echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs $(GSUNIX) >_temp_
  1503.     ./echogs -x 205c >>_temp_
  1504.     cat obj.tr >>_temp_
  1505.     cat lib.tr >>_temp_
  1506.     echo $(EXTRALIBS) -lm >>_temp_
  1507.     $(SH) <_temp_
  1508.  
  1509. # Installation
  1510.  
  1511. TAGS:
  1512.     etags -t *.c *.h
  1513.  
  1514. docdir=$(gsdatadir)/doc
  1515. exdir=$(gsdatadir)/examples
  1516. sysdir=$(gsdatadir)/system
  1517.  
  1518. install: gs
  1519.     -mkdir $(bindir)
  1520.     $(INSTALL_PROGRAM) gs $(bindir)
  1521.     $(INSTALL_PROGRAM) gsnd $(bindir)
  1522.     $(INSTALL_PROGRAM) bdftops $(bindir)
  1523.     $(INSTALL_PROGRAM) font2c $(bindir)
  1524.     $(INSTALL_PROGRAM) pfbtogs $(bindir)
  1525.     $(INSTALL_PROGRAM) showpbm $(bindir)
  1526.     -mkdir $(gsdatadir)
  1527.     $(INSTALL_DATA) README $(gsdatadir)
  1528.     $(INSTALL_DATA) gs_init.ps $(gsdatadir)
  1529.     $(INSTALL_DATA) gs_2asc.ps $(gsdatadir)
  1530.     $(INSTALL_DATA) gs_dps1.ps $(gsdatadir)
  1531.     $(INSTALL_DATA) gs_fonts.ps $(gsdatadir)
  1532.     $(INSTALL_DATA) gs_lev2.ps $(gsdatadir)
  1533.     $(INSTALL_DATA) gs_statd.ps $(gsdatadir)
  1534.     $(INSTALL_DATA) sym__enc.ps $(gsdatadir)
  1535.     $(INSTALL_DATA) quit.ps $(gsdatadir)
  1536.     $(INSTALL_DATA) Fontmap $(gsdatadir)
  1537.     $(INSTALL_DATA) uglyr.gsf $(gsdatadir)
  1538.     $(INSTALL_DATA) bdftops.ps $(gsdatadir)
  1539.     $(INSTALL_DATA) decrypt.ps $(gsdatadir)
  1540.     $(INSTALL_DATA) font2c.ps $(gsdatadir)
  1541.     $(INSTALL_DATA) impath.ps $(gsdatadir)
  1542.     $(INSTALL_DATA) landscap.ps $(gsdatadir)
  1543.     $(INSTALL_DATA) pfbtogs.ps $(gsdatadir)
  1544.     $(INSTALL_DATA) prfont.ps $(gsdatadir)
  1545.     $(INSTALL_DATA) pstoppm.ps $(gsdatadir)
  1546.     $(INSTALL_DATA) showpbm.ps $(gsdatadir)
  1547.     $(INSTALL_DATA) type1ops.ps $(gsdatadir)
  1548.     $(INSTALL_DATA) wrfont.ps $(gsdatadir)
  1549.     -mkdir $(docdir)
  1550.     $(INSTALL_DATA) NEWS $(docdir)
  1551.     $(INSTALL_DATA) history.doc $(docdir)
  1552.     $(INSTALL_DATA) drivers.doc $(docdir)
  1553.     $(INSTALL_DATA) fonts.doc $(docdir)
  1554.     $(INSTALL_DATA) hershey.doc $(docdir)
  1555.     $(INSTALL_DATA) humor.doc $(docdir)
  1556.     $(INSTALL_DATA) language.doc $(docdir)
  1557.     $(INSTALL_DATA) lib.doc $(docdir)
  1558.     $(INSTALL_DATA) make.doc $(docdir)
  1559.     $(INSTALL_DATA) psfiles.doc $(docdir)
  1560.     $(INSTALL_DATA) readme.doc $(docdir)
  1561.     $(INSTALL_DATA) use.doc $(docdir)
  1562.     -mkdir $(exdir)
  1563.     $(INSTALL_DATA) chess.ps $(exdir)
  1564.     $(INSTALL_DATA) cheq.ps $(exdir)
  1565.     $(INSTALL_DATA) colorcir.ps $(exdir)
  1566.     $(INSTALL_DATA) golfer.ps $(exdir)
  1567.     $(INSTALL_DATA) escher.ps $(exdir)
  1568.     $(INSTALL_DATA) snowflak.ps $(exdir)
  1569.     $(INSTALL_DATA) tiger.ps $(exdir)
  1570.